﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ZKDetails.aspx.cs" Inherits="ZKDetails" %>
<%@ Register Src="~/Pfoot.ascx" TagPrefix="uc1" TagName="Pfoot" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="~/header.ascx" TagPrefix="uc1" TagName="header" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>实物地质资料中心--钻孔信息</title>
    <link rel="shortcut icon" href="pic/mark.ico" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="css/all.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="js/BannerSlide.js"></script>
    <script type="text/javascript" src="js/TabSlide.js"></script>
    <script type="text/javascript" src="js/Utils.js"></script>
    <script type="text/javascript">


        /* Tab块的执行函数
             ======================================================================================================================*/


        function initTab($) {
            //淡隐淡现选项卡切换
            $("#fadetab").tabso({
                cntSelect: "#fadecon",
                tabEvent: "click",
                tabStyle: "fade"
            });
        }

        /*根据数据条数控制对应的DIV的显示与否
        ======================================================================================================================*/


        // 控制是否显示剖面表信息

        function PMDetailDis() {

            if ("0" == "<%=pmflag%>") {
                document.getElementById("PMDetail").style.display = "none";
            }
            else {
                document.getElementById("PMDetail").style.display = "block";
            }
        }

        // 控制是否显示钻孔表信息

        function ZKDetailDis() {
            if ("0" == "<%=zkflag%>") {
                document.getElementById("ZKDetail").style.display = "none";
            }
            else {
                document.getElementById("ZKDetail").style.display = "block";
            };

        }
        // 控制是否显示相关文件表信息
        function XGFDetailDis() {
            if ("0" == "<%=xgflag%>") {
                document.getElementById("XGFDetail").style.display = "none";
            }
            else {
                document.getElementById("XGFDetail").style.display = "block";
            }
        }
        // 控制是否显示标本、光片、薄片、样品表信息

        function BBDetailDis() {

            if ("0" == "<%=bbflag%>") {
                 document.getElementById("BBDetail").style.display = "none";
             }
             else {
                 document.getElementById("BBDetail").style.display = "block";
             }
         }

         // 控制是否显示剖面表信息

         function UTILDetailDis() {

             if ("0" == "<%=utilflag%>") {
                document.getElementById("UTILDetail").style.display = "none";
            }
            else {
                document.getElementById("UTILDetail").style.display = "block";
            }
        }


        // 控制对应的表信息DIV是否折叠起来，根据fg字段进行对应的表信息展开

        function initDiv() {
            if ("ZK" == "<%=fg%>") {
                 document.getElementById("ZKDIV").style.display = "block";
                 document.getElementById("ZKIMG").src = "pic/expanded.gif";
             }
             else if ("BB" == "<%=fg%>" || "BP" == "<%=fg%>" || "GP" == "<%=fg%>" || "YP" == "<%=fg%>") {
                 document.getElementById("fadecon").style.display = "block";
                 document.getElementById("BBIMG").src = "pic/expanded.gif";
                 if ("BB" == "<%=fg%>") {
                    document.getElementById("BBName").className = "current";
                    document.getElementById("BBName").click();
                }
                else if ("BP" == "<%=fg%>") {
                    document.getElementById("BPName").className = "current";
                    document.getElementById("BPName").click();
                }
                else if ("GP" == "<%=fg%>") {
                    document.getElementById("GPName").className = "current";
                    document.getElementById("GPName").click();
                }
                else if ("YP" == "<%=fg%>") {
                    document.getElementById("YPName").className = "current";
                    document.getElementById("YPName").click();
                }
    }
    else if ("XGF" == "<%=fg%>") {
                document.getElementById("XGFDIV").style.display = "block";
                document.getElementById("XGFIMG").src = "pic/expanded.gif";
            }
            else if ("PM" == "<%=fg%>") {
        document.getElementById("PMDIV").style.display = "block";
        document.getElementById("PMIMG").src = "pic/expanded.gif";
    }
    else if ("UTIL" == "<%=fg%>") {
                document.getElementById("UTILDIV").style.display = "block";
                document.getElementById("UTILIMG").src = "pic/expanded.gif";
            }

}


//点击钻孔表头折叠表信息
function ZKClick() {
    ZKDIVobj = document.getElementById("ZKDIV");
    if (ZKDIVobj.style.display == "block") {
        ZKDIVobj.style.display = "none"
        document.getElementById("ZKIMG").src = "pic/collapsed.gif";
    }
    else {
        ZKDIVobj.style.display = "block"
        document.getElementById("ZKIMG").src = "pic/expanded.gif";
    }
}



//点击折叠信息表头折叠表信息（包含薄片、光片、样品、标本表）
function BBClick() {
    BBDIVobj = document.getElementById("fadecon");
    if (BBDIVobj.style.display == "block") {
        BBDIVobj.style.display = "none"
        document.getElementById("BBIMG").src = "pic/collapsed.gif";
    }
    else {
        BBDIVobj.style.display = "block"
        document.getElementById("BBIMG").src = "pic/expanded.gif";
    }
}

//点击相关文件表头折叠表信息
function XGFClick() {
    XGFDIVobj = document.getElementById("XGFDIV");
    if (XGFDIVobj.style.display == "block") {
        XGFDIVobj.style.display = "none"
        document.getElementById("XGFIMG").src = "pic/collapsed.gif";
    }
    else {
        XGFDIVobj.style.display = "block"
        document.getElementById("XGFIMG").src = "pic/expanded.gif";
    }
}

//点击剖面表头折叠表信息
function PMClick() {
    PMDIVobj = document.getElementById("PMDIV");
    if (PMDIVobj.style.display == "block") {
        PMDIVobj.style.display = "none"
        document.getElementById("PMIMG").src = "pic/collapsed.gif";
    }
    else {
        PMDIVobj.style.display = "block"
        document.getElementById("PMIMG").src = "pic/expanded.gif";
    }
}




//点击其他实物信息表头折叠表信息
function UTILClick() {
    UTILDIVobj = document.getElementById("UTILDIV");
    if (UTILDIVobj.style.display == "block") {
        UTILDIVobj.style.display = "none"
        document.getElementById("UTILIMG").src = "pic/collapsed.gif";
    }
    else {
        UTILDIVobj.style.display = "block"
        document.getElementById("UTILIMG").src = "pic/expanded.gif";
    }
}



window.onload = function () {

    PMDetailDis();// 控制是否显示剖面表信息
    ZKDetailDis();// 控制是否显示钻孔表信息
    XGFDetailDis();// 控制是否显示相关文件表信息
    BBDetailDis();// 控制是否显示标本、光片、薄片、样品表信息
    UTILDetailDis();// 控制是否显示剖面表信息


    //先初始化tab，在执行表信息折叠函数intDiv
    initTab($);//tab块的执行函数
    initDiv();// 控制对应的表信息DIV是否折叠起来，根据fg字段进行对应的表信息展开

};

    </script>

</head>
<body>
    <center>
        <form id="form1" runat="server">
            <uc1:header runat="server" ID="header" />

            <div id="big" style="margin: -65px auto; margin-bottom: 50px; height: auto; width: 990px; text-align: left; overflow: hidden;">

                <div id="Info" style="width: 920px; height: 260px; height: auto; padding: 20px 20px 20px 50px; font-family: KaiTi,Arial;" align="center ">
                    <table style="width: 100%; height: 100%; text-align: left;">
                        <tr>
                            <td style="width: 100px; font-size: 14px; font-weight: bold; line-height: 20px;">题名:</td>
                            <td>
                                <asp:Label ID="HEAD_TITLE" runat="server" Width="300" Text=""></asp:Label></td>
                            <td style="width: 100px; font-size: 14px; font-weight: bold; line-height: 20px;">形成单位:</td>
                            <td>
                                <asp:Label ID="UNIT" runat="server" Width="300" Text=""></asp:Label></td>
                        </tr>
                        <tr>
                            <td style="width: 100px; font-size: 14px; font-weight: bold; line-height: 20px;">项目名称:</td>
                            <td>
                                <asp:Label ID="PEOJ_NAME" runat="server" Width="300" Text=""></asp:Label></td>
                            <td style="width: 100px; font-size: 14px; font-weight: bold; line-height: 20px;">资料类别:</td>
                            <td>
                                <asp:Label ID="DATA_CLASS" runat="server" Width="300" Text=""></asp:Label></td>
                        </tr>
                        <tr>
                            <td style="width: 100px; font-size: 14px; font-weight: bold; line-height: 20px;">行政区:</td>
                            <td>
                                <asp:Label ID="XZArea" runat="server" Width="300" Text=""></asp:Label></td>
                            <td style="width: 100px; font-size: 14px; font-weight: bold; line-height: 20px;">入库时间:</td>
                            <td>
                                <asp:Label ID="PUTIN_DATE" runat="server" Width="300" Text=""></asp:Label></td>
                        </tr>
                    </table>
                </div>


                <div id="ZKDetail" style="width: 990px; height: auto; padding-bottom: 20px; position: relative;" align="center ">
                    <div style="width: 990px; height: 30px; line-height: 30px; text-align: left; font-size: 14px; font-weight: bold; font-family: '微软雅黑'; cursor: pointer; background: url(pic/bg_topbar.gif) repeat-x; font-family: KaiTi,Arial;" onclick="ZKClick()">
                        <img src="pic/collapsed.gif" height="15px" id="ZKIMG" width="15px" style="margin-left: 15px;" />钻孔信息
                    </div>
                    <div id="ZKDIV" style="display: none;">
                        <iframe src="InfoTbl_ZK.aspx?fid=<%=strFid %>" width="990" height="200" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="auto"></iframe>
                    </div>


                </div>

                <div id="PMDetail" style="width: 990px; height: auto; padding-bottom: 20px; display: block;" align="center">
                    <div style="width: 990px; height: 30px; line-height: 30px; text-align: left; font-size: 14px; font-weight: bold; font-family: '微软雅黑'; cursor: pointer; background: url(pic/bg_topbar.gif) repeat-x; font-family: KaiTi,Arial;" onclick="PMClick()">
                        <img src="pic/collapsed.gif" height="15px" id="PMIMG" width="15px" style="margin-left: 15px;" />剖面信息
                    </div>
                    <div id="PMDIV" style="display: none;">
                        <iframe src="InfoTbl_PM.aspx?fid=<%=strFid %>" width="990" height="180" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="auto"></iframe>
                    </div>
                </div>




                <div id="BBDetail" style="width: 990px; height: auto; padding-bottom: 20px;" align="center" runat="server">

                    <div style="width: 100%; height: 30px; line-height: 30px; text-align: left; font-size: 14px; font-weight: bold; font-family: '微软雅黑'; cursor: pointer; background: url(pic/bg_topbar.gif) repeat-x;">
                        <p onclick="BBClick()" style="width: 120px; line-height: 30px; float: left; font-size: 14px; margin: 0px 0 0 0; font-family: KaiTi,Arial;">
                            <img src="pic/collapsed.gif" height="15px" id="BBIMG" style="margin-left: 15px;" />折叠信息表
                        </p>
                        <ul class="tabbtn" id="fadetab" style="width: 70%;">

                            <li id="BBName" class=""><a href="javascript:void(0);">标本信息</a></li>
                            <li id="BPName" class=""><a href="javascript:void(0);">薄片信息</a></li>
                            <li id="GPName" class=""><a href="javascript:void(0);">光片信息</a></li>
                            <li id="YPName" class=""><a href="javascript:void(0);">样品信息</a></li>
                        </ul>
                    </div>
                    <!--tabbtn end-->
                    <div class="tabcon" id="fadecon" style="display: none;">
                        <div class="sublist">

                            <div id="BBDIV">
                                <iframe src="InfoTbl_BB.aspx?fid=<%=strFid %>" width="990" height="180" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="auto"></iframe>
                            </div>
                        </div>
                        <!--tabcon end-->
                        <div class="sublist">

                            <div id="BPDIV">
                                <iframe src="InfoTbl_BP.aspx?fid=<%=strFid %>" width="990" height="180" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="auto"></iframe>
                            </div>

                        </div>
                        <!--tabcon end-->
                        <div class="sublist">

                            <div id="GPDIV">
                                <iframe src="InfoTbl_GP.aspx?fid=<%=strFid %>" width="990" height="180" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="auto"></iframe>
                            </div>

                        </div>
                        <!--tabcon end-->
                        <div class="sublist">

                            <div id="YPDIV">
                                <iframe src="InfoTbl_YP.aspx?fid=<%=strFid %>" width="990" height="180" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="auto"></iframe>
                            </div>
                        </div>
                        <!--tabcon end-->
                    </div>
                    <!--tabcon end-->
                </div>




                <div id="XGFDetail" style="width: 990px; height: auto; padding-bottom: 20px; display: block;" align="center">
                    <div style="width: 990px; height: 30px; line-height: 30px; text-align: left; font-size: 14px; font-weight: bold; font-family: KaiTi,Arial; cursor: pointer; background: url(pic/bg_topbar.gif) repeat-x;" onclick="XGFClick()">

                        <img src="pic/collapsed.gif" height="15px" id="XGFIMG" width="15px" style="margin-left: 15px;" />相关资料
                    </div>
                    <div id="XGFDIV" style="display: none;">
                        <iframe src="InfoTbl_XGF.aspx?fid=<%=strFid %>" width="990" height="180" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="auto"></iframe>
                    </div>
                </div>





                <div id="UTILDetail" style="width: 990px; height: auto; padding-bottom: 20px; display: block;" align="center">
                    <div style="width: 990px; height: 30px; line-height: 30px; text-align: left; font-size: 14px; font-weight: bold; font-family: '微软雅黑'; cursor: pointer; background: url(pic/bg_topbar.gif) repeat-x; font-family: KaiTi,Arial;" onclick="UTILClick()">
                        <img src="pic/collapsed.gif" height="15px" id="UTILIMG" width="15px" style="margin-left: 15px;" />其他实物
                    </div>
                    <div id="UTILDIV" style="display: none;">
                        <iframe src="InfoTbl_UTIL.aspx?fid=<%=strFid %>" width="990" height="180" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="auto"></iframe>
                    </div>
                </div>

            </div>


            <div id="foot_UC">

                <div id="foot">
                    <uc1:Pfoot runat="server" ID="Pfoot" />
                </div>
            </div>
        </form>
    </center>
</body>
</html>
